package homework.homework_4.chartool;

import java.util.Scanner;

/**
 * @author 朱
 * @date 2019032121:36
 */
public class ChatTest {
    public static void main(String[] args) {
        Scanner scannerInt=new Scanner(System.in);
        System.out.println("请输入您选择的通讯设备：");
        System.out.println("1.WeiBo/2.WeiXin");
        int message=scannerInt.nextInt();
        ChatFactory chatFactory=new ChatFactory();
        CharTool charTool=chatFactory.gettool(message);
        System.out.println(charTool.send());
         System.out.println(charTool.login());
        System.out.println(charTool.exit());
    }
}
